package com.ibm.commerce.url.tasks.orgadminconsole;

/**
 * Info 1
 * Info 2
 * Info 3
 * Info 4
 * Info 5
 * Info 6
 */

import com.ibm.commerce.url.harness.*;
import com.ibm.commerce.url.util.Log;
import com.ibm.commerce.url.exception.*;
import com.ibm.wc.test.exception.DatablockMissingException;

import java.util.LinkedHashMap;
import java.util.Map;

public class OrgAdminConsoleLogoff extends URLTestTask {
	private static OrgAdminConsoleLogoff instance = new OrgAdminConsoleLogoff();
	private OrgAdminConsoleLogoff(){}
	
	public static void execute() throws TaskFailException, DatablockMissingException {
		instance.runTask();
	}
	public static void execute(int counterIndex) throws TaskFailException, DatablockMissingException {
		instance.runTask(counterIndex);
	}
	
	protected void executeTask() throws TaskFailException {
		orgAdminConsoleLogoffStep1();
	}

	private static Map<String, String> orgAdminConsoleLogoffStep1_FORM = new LinkedHashMap<String, String>();
	static{
		orgAdminConsoleLogoffStep1_FORM.put("URL","/wcs/tools/common/blank.html");
		orgAdminConsoleLogoffStep1_FORM.put("storeId","0");
	}
	private void orgAdminConsoleLogoffStep1() throws TaskFailException {
		Log.finest("Task["+this.getClass().getSimpleName()+"]: Entering orgAdminConsoleLogoffStep1");
		
		WebHit("https://standardhost/webapp/wcs/orgadmin/servlet/Logoff", WEB_FORM_GET, orgAdminConsoleLogoffStep1_FORM);
		// do the GUI validation
	  	GUIValidate("LINK rel=\"stylesheet\"");
		
		Log.finest("Task["+this.getClass().getSimpleName()+"]: Exiting orgAdminConsoleLogoffStep1");		
	}
}
